package com.example.mysql;

import com.example.mysql.core.ByteBufferUtil;

import java.nio.ByteBuffer;

/**
 * wzy:wzynov@qq.com
 */
public class Test {

    public static void main(String[] args) {
        ByteBuffer byteBuffer = ByteBuffer.allocate(16384);
        ByteBufferUtil.mach_write_to_2(byteBuffer, 0, 129);  // 0 0 0 10000000
        System.out.println(ByteBufferUtil.mach_read_from_2(byteBuffer, 0));
    }
}
